package net.cyndeline.rlgraph.orthogonal.network.util

import scalax.collection.immutable.Graph
import scala.collection.mutable
import net.cyndeline.rlgraph.planar.face.Face

/**
 * Stores the graph representation of a flow network, as well as additional
 * data used when generating it.
 */
class NetworkRepresentation[VType] {

  var graph: Graph[FlowVertex, FlowEdge] = null
  var externalFace: FlowVertex = null

  val vertexMapping = new mutable.HashMap[FlowVertex, VType]()
  val faceMapping = new mutable.HashMap[FlowVertex, Face[VType]]()
}
